package com.wicket.okrapp.integration.dto;

import com.wicket.okrapp.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Objects;

import lombok.Data;

/**
 * @desc WorkTaskMgtScreenConditionDto
 * @使用场景
 */
@Data
public class WorkTaskMgtScreenConditionDto
  extends BaseDto
  implements Serializable {

  /**
   * 工作任务管理筛选项标识
   */
  @ApiModelProperty("工作任务管理筛选项标识")
  private String workTaskMgtScreenItemCode;

  /**
   * 工作任务管理筛选项名称
   */
  @ApiModelProperty("工作任务管理筛选项名称")
  private String workTaskMgtScreenItemName;

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;
    WorkTaskMgtScreenConditionDto that = (WorkTaskMgtScreenConditionDto) o;
    return (
      workTaskMgtScreenItemCode == that.workTaskMgtScreenItemCode &&
      workTaskMgtScreenItemName == that.workTaskMgtScreenItemName
    );
  }

  @Override
  public int hashCode() {
    return Objects.hash(
      super.hashCode(),
      workTaskMgtScreenItemCode,
      workTaskMgtScreenItemName
    );
  }

}
